package com.yanqu.road.entity.activity.washe.eliminate;

import com.yanqu.road.entity.enums.washe.eWasheSkillType;
import com.yanqu.road.entity.enums.washe.eWasheEffectType;

import java.util.ArrayList;
import java.util.List;

public class WasheOperateEffect {

    // 基础类型eWasheEffectType，或者技能ID后面加2位数字（00表示技能结束，01、02...表示技能的每个过程）
    private int effectType;

    private List<WasheBlock> blockList = new ArrayList<>();
    private int param;

    // ===================================================================

    public WasheOperateEffect(eWasheEffectType effectType) {
        this.effectType = effectType.getValue();
    }

    public WasheOperateEffect(eWasheSkillType skillType, int no) {
        this.effectType = skillType.getValue() * 100 + no;
    }

    public void addBlock(WasheBlock block) {
        this.blockList.add(block);
    }

    // ===================================================================

    public int getEffectType() {
        return effectType;
    }

    public void setEffectType(int effectType) {
        this.effectType = effectType;
    }

    public List<WasheBlock> getBlockList() {
        return blockList;
    }

    public void setBlockList(List<WasheBlock> blockList) {
        this.blockList = blockList;
    }

    public int getParam() {
        return param;
    }

    public void setParam(int param) {
        this.param = param;
    }
}
